<?php
$servername = "localhost";
$username = "root"; // 数据库用户名
$password = "store"; // 数据库密码
$dbname = "aiweb"; // 数据库名称

// 创建连接
$conn = new mysqli($servername, $username, $password, $dbname);

// 检查连接
if ($conn->connect_error) {
    die("连接失败: " . $conn->connect_error);
}

// 获取appid参数
$appid = $_GET['appid'];

// 查询该应用的详细信息
$sql = "SELECT * FROM app WHERE appid = ?";
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $appid);
$stmt->execute();
$result = $stmt->get_result();

$app = null;
if ($result->num_rows > 0) {
    $app = $result->fetch_assoc();
}

$conn->close();

?>

